import java.util.Scanner;

/**
 * 3.二进制相加并输出结果的二进制
 */

public class Test3 {

    //法1：
    public static void main1(String[] args) {
        Scanner cin=new Scanner(System.in);

        while(cin.hasNextLine()){

            String a=cin.nextLine();
            String b=cin.nextLine();

            StringBuilder s1=new StringBuilder(a).reverse();
            StringBuilder s2=new StringBuilder(b).reverse();

            int max=s1.length()>s2.length()?s1.length():s2.length();

            StringBuilder ret=new StringBuilder();

            Boolean iscarry=false;

            for(int i=0;i<max;i++){

                char cha=s1.length()>i?s1.charAt(i):'0';
                char chb=s2.length()>i?s2.charAt(i):'0';

                if(cha=='1'&&chb=='1'){
                    if(iscarry){
                        ret.append('1');

                    }
                    else{
                        ret.append('0');

                    }
                    iscarry=true;
                }

                else if(cha=='0'&&chb=='0'){
                    if(iscarry){
                        ret.append('1');
                    }
                    else{
                        ret.append('0');
                    }
                    iscarry=false;

                }
                else{
                    if(iscarry){
                        ret.append('0');
                    }
                    else{
                        ret.append('1');
                    }
                }
            }
            if(iscarry){
                ret.append('1');
            }

            System.out.println(ret.reverse());
        }




    }


    //法2：
    private static int get(int x){
        int sum=0;

       return 0;
    }
    public static void main(String[] args) {
        Scanner cin=new Scanner(System.in);

        while(cin.hasNextLine()) {

            String a = cin.nextLine();
            String b = cin.nextLine();

            int x=Integer.parseInt(a,2);
            int y=Integer.parseInt(b,2);

            int sum=x+y;

            String ret=Integer.toBinaryString(sum);
            System.out.println(ret);

//            System.out.println(x);
//            System.out.println(y);
        }

    }
}
